package com.jy.rhin.infra.exception;


import com.jy.framework.base.exception.BaseException;

/**
 * @author WeiQ
 * @date 2022年7月7日 11:08:52
 * @Description 互联互通聚合服务自定义异常
 */
public class RhinAggrException extends BaseException {

    public RhinAggrException() {
    }

    public RhinAggrException(RhinAggrErrorType errorType) {
        super(errorType, errorType.getMsg());
    }

    public RhinAggrException(RhinAggrErrorType errorType, String message) {
        super(errorType, errorType.getMsg() + message);
    }

    public RhinAggrException(RhinAggrErrorType errorType, Throwable cause) {
        super(errorType, errorType.getMsg(), cause);
    }

    public RhinAggrException(RhinAggrErrorType errorType, String message, Throwable cause) {
        super(errorType, errorType.getMsg() + message, cause);
    }
}
